const Sequelize = require("sequelize");
const {Project, Activity} = require("../models/workplace");

const Op = Sequelize.Op;

const workplaceService = {
    async getProject() {
        return Project.findAll()
    },

    async getActivity() {
        return Activity.findAll()
    },

    async getTeam() {
        return Activity.findAll({
            attributes: ["id", "name", "avatar"],
        })
    }
};

module.exports = workplaceService;
